package entityDAOs;

import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Languagedepartment;
import entitiesIds.LanguagedepartmentId;

/**
 * A data access object (DAO) providing persistence and search support for
 * Languagedepartment entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see entities.Languagedepartment
 * @author MyEclipse Persistence Tools
 */

public class LanguagedepartmentDAO extends BaseHibernateDAO<Languagedepartment,entitiesIds.LanguagedepartmentId> {
	private static final Logger log = LoggerFactory
			.getLogger(LanguagedepartmentDAO.class);
	// property constants
	public static final String TOPIC = "topic";
	public static final String INFO = "info";

	public List<Languagedepartment> findByTopic(Object topic) {
		return findByProperty(TOPIC, topic);
	}

	public List<Languagedepartment> findByInfo(Object info) {
		return findByProperty(INFO, info);
	}
}